projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b24535e
)
container: Fix scrolling adjustment coordinates
author
Timm Bäder
<mail@baedert.org>
Mon, 21 Aug 2017 10:12:50 +0000
(12:12 +0200)
committer
Timm Bäder
<mail@baedert.org>
Mon, 21 Aug 2017 10:30:47 +0000
(12:30 +0200)
gtk/gtkcontainer.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcontainer.c
b/gtk/gtkcontainer.c
index 2c51cdb4dd42acecb60da71caa8b477c3346e08c..9a8154b4aff2a5134961514477290336c350a9bf 100644
(file)
--- a/
gtk/gtkcontainer.c
+++ b/
gtk/gtkcontainer.c
@@
-2059,11
+2059,7
@@
gtk_container_real_set_focus_child (GtkContainer *container,
0, 0, &x, &y))
return;
- _gtk_widget_get_allocation (focus_child, &allocation);
- x += allocation.x;
- y += allocation.y;
-
- _gtk_widget_get_allocation (child, &allocation);
+ gtk_widget_get_outer_allocation (child, &allocation);
if (vadj)
gtk_adjustment_clamp_page (vadj, y, y + allocation.height);